
import {createStore,applyMiddleware,combineReducers} from "redux";
import thunk from "redux-thunk";
import count from "./reducers/count";
import books from "./reducers/books";

const rootReducer = combineReducers({
  count:count,
  books:books
});

// 创建仓库
export default createStore(rootReducer,applyMiddleware(thunk));